<!doctype html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<html class="no-js">
    <head>
        <!-- IE6-8 support of HTML5 elements --> <!--[if lt IE 9]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
        <title>Football Betting Advice</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>resources/css/main.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>resources/css/betting_offer.css" />
        <script type="text/javascript">
            var _gaq = _gaq || [];
            _gaq.push(['_setAccount', 'UA-34655323-1']);
            _gaq.push(['_trackPageview']);

            (function() {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();
        </script>
        <script type="text/javascript" src="<?php echo base_url();?>resources/js/vendor/modernizr-2.6.2.min.js"></script>
        <script type="text/javascript" src="<?php echo base_url();?>resources/js/vendor/jquery-1.8.2.min.js"></script>
        <script type="text/javascript" src="<?php echo base_url();?>resources/js/fba.js"></script>
        <script type="text/javascript" src="<?php echo base_url();?>resources/js/offer.js"></script>
    </head>
    <body>
        <header>
            <div class="container clearfix">
                <div class="four columns alpha">
                    <a href="<?php echo base_url()?>"><img src="<?php echo base_url();?>resources/img/logo.png" /></a>
                </div>
                <div class="eight columns">
                    <h1 class="main">Football Betting Advice</h1>
                </div>
                <div class="four columns omega">
                    &nbsp;
                </div>
            </div>
            <nav class="clearfix">
                <div class="sixteen columns container">
                    <ul class="navigation">
                        <li><a class="active" href="betting_offer">Betting Tournament</a></li>
                        <li><a href="predictions">Predictions</a></li>
                        <li><a href="<?php echo base_url()?>" rel="home">Home</a></li>
                    </ul>
                </div>
            </nav>
        </header>
            
        <section class="main clearfix">
            <div class="container">
                <div class="row">
                    <div class="three columns alpha">
                        &nbsp;
                    </div>
                    <div class="ten columns">
                        <div class="banner" style="margin-top:5px;">
                            <div class="banner-holder-w460">    
                                <?php echo $ads['bet365_2']?>
                            </div>
                        </div>
                        <div id="games" class="offer">
                            <?php
                                foreach ($offer as $country){
                                    foreach($country->getLeagueList() as $league){
                            ?>
                                        <table>
                                            <tr>
                                                <th></th>
                                                <th colspan="2">Time</th>
                                                <th colspan="3" id="test">
                                                    <?php echo $league->getFullName(); ?>
                                                </th>
                                                <th>1</th>
                                                <th>X</th>
                                                <th>2</th>
                                            </tr>
                                            <?php 
                                                $i = 0;
                                                foreach($league->getGameList() as $game) {
                                                    $i = $i+1;
                                            ?>
                                            <tr>
                                                <td class="ordinal"><?php echo $i ?></td>
                                                <td class="date"><?php echo $game->getDate() ?></td>
                                                <td class="time"><?php echo $game->getTime() ?></td>
                                                <td class="home"><?php echo $game->getHomeTeam() ?></td>
                                                <td class="delimiter">-</td>
                                                <td class="away"><?php echo $game->getAwayTeam() ?></td>
                                                <td class="odds1" id="odds1-<?php echo $game->getID()?>" onclick="checkOdd(this.id)"><?php echo $game->getOdds1() ?></td>
                                                <td class="oddsX" id="oddsX-<?php echo $game->getID()?>" onclick="checkOdd(this.id)"><?php echo $game->getOddsX() ?></td>
                                                <td class="odds2" id="odds2-<?php echo $game->getID()?>" onclick="checkOdd(this.id)"><?php echo $game->getOdds2() ?></td>
                                            </tr>
                                            <?php 
                                                }
                                            ?>
                                        </table><br>
                            <?php
                                    }
                            ?>
                            <?php
                                }
                            ?>
                        </div>
                    </div>
                    <div class="three columns omega">
                        <div class="banner">
                            <div class="banner-holder-w160">
                                <?php echo $ads['clicksor']?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <footer>
            
            <div class="container">
                &copy; football-betting-advice.com 2012 - All predictions calculated in {elapsed_time}s
            </div>
        </footer>
    </body>
</html>
